<?php
require_once('image.class.php');
$src = 'img/shoujike.png';
$source = 'img/c.png';
$local = array(
	'x' => 20,
	'y' => 30
);
$tlocal = [
	'x' => 23,
	'y' => 33,
];
$color = array(
	'red' => 245,
	'green' => 245,
	'blue' => 245
);
$width = 270;
$height = 192;
$text = 'My Love';
$image = new Image($src);
$image->imageMark($source, $local);
$image->thumbnail($width, $height);
$image->textMark($text, $tlocal, $color);
$image->show();
$image->save('mylove');
?>